package util;

import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.springframework.context.ApplicationContext;

/**
 * Created by Новак on 24.11.2014.
 */
public class Context {
    private static ApplicationContext appContext;
    private Context(){

    }
    public static ApplicationContext getAppContext(){
        if(appContext==null){
            appContext=
                    new ClassPathXmlApplicationContext("spring/config/BeanLocation.xml");
        }
        return appContext;
    }
}
